package com.hung;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.core.env.Environment;

@SpringBootApplication
public class UserApplication {

	private final static Log logger = LogFactory.getLog(UserApplication.class);

	public static void main(String[] args) {
		//SpringApplication.run(UserApplication.class, args);
		SpringApplication application = new SpringApplication(UserApplication.class);

		Environment environment = application.run(args).getEnvironment();
		logger.info("SwaggerUI: 	http://localhost:" + environment.getProperty("server.port") + "/swagger-ui.html");
	}
}
